package com.yangaobo.service;

import com.github.pagehelper.PageInfo;
import com.yangaobo.dto.*;
import com.yangaobo.entity.Emp;
import com.yangaobo.excel.EmpExcel;
import com.yangaobo.vo.EmpVO;
import com.yangaobo.vo.LoginVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 杨奥博
 */
public interface EmpService {

    int insert(EmpInsertDTO dto);

    Emp select(Long id);

    List<EmpVO> list();

    PageInfo<Emp> page(EmpPageDTO dto);

    int update(EmpUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<EmpExcel> getExcelData();

    String uploadAvatar(MultipartFile newFile, Long id);

    int updatePassword(EmpUpdatePasswordDTO dto);

    LoginVO loginByAccount(LoginDTO dto);


}
